package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //菜品列表分页查询
    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);

    //菜品保存
    void save(Dish dish);

    //根据菜品查id

    Dish findById(Long id);

    //更新
    void update(Dish dish);

    //根据分类id查询菜品
    List<Dish> findByCategoryId(Long categoryId);




    void updateByIds(Long[] ids, Integer status);

    //删除
    void deleteByIds(Long[] ids);
}